﻿using Nop.Core.Domain.Tax;
using System.Data.Entity.ModelConfiguration;

namespace Nop.Data.Mapping.Tax
{
    public class SurchargeTypeMap : EntityTypeConfiguration<SurchargeType>
    {
        public SurchargeTypeMap()
        {
            this.ToTable("SurchargeType");
            this.HasKey(st => st.Id);
            this.Property(st => st.Name).IsRequired().HasMaxLength(400);
            this.Property(st => st.SystemName).IsRequired().HasMaxLength(400);
            this.Property(st => st.IsFixedCharge).IsRequired();
            this.Property(st => st.DisplayOrder).IsRequired();
        }
    }
}
